package com.xyd.Dao;

import com.xyd.Entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageDao {
    List<Message> selectMsgBL(@Param("start") int start,@Param("flag") String flag);
    int selectMsgBLcount(@Param("flag")String flag);
    int insertMsgByMsg(Message msg);
    Message selectMsgbyId(int id);
    int updateMsgByMsg(Message message);
    List<Message> selectMsgPL(@Param("start") int start,@Param("id") int id);
    int selectMsgPLcount(int id);
}
